/**
 * dialog类型
 */
export const DIALOG_VIEW: string = 'view';
export const DIALOG_EDIT: string = 'edit';
export const DIALOG_ADD: string = 'add';

/**
 * relationType
 */
export const RELATION_TYPE_USER: string = 'user';
export const RELATION_TYPE_ROLE_TO_USER: string = 'role_to_user';
export const RELATION_TYPE_ROLE_TO_MENU: string = 'role_to_menu';
export const RELATION_TYPE_MENU: string = 'menu';

/**
 * 地址信息
 */
const HOST = import.meta.env.VITE_PUBLIC_IP;
export const WEB_SOCKET_URL: string = 'ws://' + HOST + ':9700' + '/jk-admin/ws/connect'

/**
 * 通知参数
 */
export const NOTIFICATION_SEND_WAY_WEB: string = 'web';
export const NOTIFICATION_POSITION: string = 'bottom-right';
export const NOTIFICATION_DURING: number = 10 * 1000;

/**
 * 上传文件
 */
export const UPLOAD_URL: string = 'http://' + HOST + ':9700' + '/admin/common/uploadFile';
export const UPLOAD_CONTENT_TYPE: string = 'multipart/form-data';

/**
 * ai互动角色
 */
export const AI_BOT_ROLE_TYPE:number = 1;
export const AI_USER_ROLE_TYPE:number = 2;